package com.zulu.karaoke;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class SplashScreen extends Activity{

	protected int _splashTime = 1000; 

    private Thread splashTread;
//    private Context mContext;

	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.splash_screen);
		
		final SplashScreen sPlashScreen = this; 
		
//		mContext = this;
		
		splashTread = new Thread() {
            @Override
            public void run() {
                try {
                    synchronized(this){
                            wait(_splashTime);
                    }

                } catch(InterruptedException e) {}
                finally {
                    finish();
                    //start a new activity
                    Intent i = new Intent();
                    i.setClass(sPlashScreen, MainScreen.class);
                    startActivity(i);
//                    stop();
                }
            }
        };
        
        splashTread.start();
	}

}
